import request from "../../request.js";
//下单 邀约
export const invitePlace = (params)=>{
	return request.post('/app/order/place',params)
}
//根据状态查询订单列表
export const getOrderList = (params)=>{
	return request.get('/app/order/get/list',params)
}
//获取订单详情
export const getOrderDetails = (id)=>{
	return request.get(`/app/order/get/${id}`)
}
//获取续费支付参数
export const getPayRenew = (params)=>{
	return  request.post('/app/order/renew/pay',params)
}
//获取支付参数
export const getPay = (params)=>{
	return  request.get('/app/order/getPay',params)
}
//教练订单接受与拒绝
export const tutorOrderDispose = (params)=>{
	return  request.post('/app/order/handleAssistantOrder',params)
}
//订单服务手动提前结束
export const tutorOrderEnd = (params)=>{
	return  request.post('/app/order/orderOperation/accordOrder',params)
}
//订单服务开始确认
export const tutorOrderAcess = (params)=>{
	return  request.post('/app/order/orderOperation/orderAffirm',params)
}
//查询教练端订单列表
export const tutorOrderList = (params)=>{
	return  request.get('/app/order/get/assistant/list',params)
}
//取消订单
export const cancelOrder = (id)=>{
	return  request.post(`/app/order/cancelOrder/${id}`)
}
//删除订单
export const delOrder = (id)=>{
	return  request.delete(`/app/order/${id}`)
}